ExpandableFAQ\Models\Validation\StaticValidator D

Total Complexity 352
Dependencies 1
Dependents 29
Total lines 1,823
Lines of code 1,089
Logical lines of code 661
Comment lines 416
Methods 97
Properties 1

Methods 97

Method Rating Maintainability Complexity Lines of code
getValidSetting()
D
36 40 65
compareSemvers()
C
38 26 62
getValidValue()
B
44 20 41
getValidValueInput()
A
42 15 52
getValidArrayInput()
A
42 14 55
getSinglePeriod()
A
47 14 35
getDateCount()
A
48 12 30
isDate()
A
48 9 35
checkTime()
A
59 10 15
getValidSelect()
A
54 9 20
getValidCode()
A
55 8 20
getFloatTotalYearsBetweenTwoISODates()
S
53 7 19
getFloatTotalYearsBetweenTwoTimestamps()
S
55 7 17
isTime()
S
57 7 15
subtractTillTimestampByTimeCeiling()
S
52 6 26
getValidKey()
S
59 6 14
getValidISO_Date()
S
55 5 20
getValidDate()
S
57 5 16
getValidArray()
S
58 5 15
getValidUsername()
S
60 5 13
isInteger()
S
59 4 14
getValidDomainName()
S
60 4 13
getFloatTotalMonthsBetweenTwoISODates()
S
54 3 19
getFloatTotalMonthsBetweenTwoTimestamps()
S
56 3 17
getTotalDifferentMonthsBetweenTwoISODates()
S
56 3 17
wpDebugLog()
S
73 4 4
getTotalDifferentYearsBetweenTwoISODates()
S
58 3 15
getTotalDifferentMonthsBetweenTwoTimestamps()
S
58 3 15
inWP_Debug()
S
73 4 4
getDifferentDatesCount()
S
59 3 13
getTotalDifferentYearsBetweenTwoTimestamps()
S
60 3 13
getValidISO_Time()
S
61 3 12
isValidDomainName()
S
62 3 12
timeToSeconds()
S
61 3 12
getLocalDateByTimestamp()
S
63 3 10
isAfterNoonTime()
S
67 3 6
getPeriod()
S
66 3 8
getUTC_TimestampFromLocalISO_DateTime()
S
61 2 11
getLocalTimestampFromUTC_ISO_DateTime()
S
61 2 11
getTextIfTimestampIsPast()
S
64 2 10
isPositiveInteger()
S
66 2 9
getValidPositiveInteger()
S
75 2 4
getValidInteger()
S
75 2 4
getValidPositiveFloat()
S
75 2 4
getMonthsOnLastYearFromMonths()
S
72 1 5
getFloatFromPriceFormattedNumber()
S
79 1 3
getValidSemver()
S
75 1 4
getMySqlDate()
S
78 1 3
getSecondsInThisYear()
S
70 1 6
getSecondsInThisMonth()
S
70 1 6
getFloorMinutesOnLastHourFromSeconds()
S
69 1 6
getCeilMinutesOnLastHourFromSeconds()
S
69 1 6
getFloorMinutesFromSeconds()
S
75 1 4
getCeilMinutesFromSeconds()
S
75 1 4
getFloorDaysFloorHoursAndCeilMinutesFromSeconds()
S
67 1 8
getFloorHoursOnLastDayFromSeconds()
S
69 1 6
getYearsAndMonthsFromMonths()
S
69 1 7
getCeilHoursOnLastDayFromSeconds()
S
69 1 6
getCeilYearsFromMonths()
S
75 1 4
getFloorHoursFromSeconds()
S
75 1 4
getFloorYearsFromMonths()
S
75 1 4
getFloorDaysFromSeconds()
S
75 1 4
getCeilDaysFromSeconds()
S
75 1 4
getFloorDaysAndFloorHoursFromSeconds()
S
69 1 7
getFloorDaysAndCeilHoursFromSeconds()
S
69 1 7
getFloorDaysFloorHoursAndFloorMinutesFromSeconds()
S
67 1 8
getCeilHoursFromSeconds()
S
75 1 4
getLocalISO_DateByTimestamp()
S
74 1 4
getCeilTotalYearsBetweenTwoTimestamps()
S
75 1 4
getMonthStartTimestamp()
S
71 1 5
getUTC_ISO_DateByTimestamp()
S
75 1 4
getLocalCurrentTimestamp()
S
74 1 4
getTodayStartTimestamp()
S
75 1 4
getTodayNoonTimestamp()
S
71 1 5
getTodayEndTimestamp()
S
75 1 4
getCurrentMonthStartTimestamp()
S
74 1 4
getCurrentMonthEndTimestamp()
S
74 1 4
getCurrentYearStartTimestamp()
S
75 1 4
getCurrentYearEndTimestamp()
S
75 1 4
getDayStartTimestamp()
S
71 1 5
getDayNoonTimestamp()
S
68 1 6
getDayEndTimestamp()
S
71 1 5
getMonthEndTimestamp()
S
70 1 5
getFloorTotalYearsBetweenTwoTimestamps()
S
75 1 4
getI18nTimeByTimestamp()
S
77 1 3
getYearEndTimestamp()
S
71 1 5
getI18nDateByTimestamp()
S
77 1 3
getFloorTotalMonthsBetweenTwoISODates()
S
75 1 4
getCeilTotalMonthsBetweenTwoISODates()
S
75 1 4
getFloorTotalMonthsBetweenTwoTimestamps()
S
75 1 4
getCeilTotalMonthsBetweenTwoTimestamps()
S
75 1 4
isValidTimeFormat()
S
74 1 4
isValidDateFormat()
S
73 1 4
getFloorTotalYearsBetweenTwoISODates()
S
75 1 4
getCeilTotalYearsBetweenTwoISODates()
S
75 1 4
getLocalCurrentISO_Date()
S
74 1 4
getYearStartTimestamp()
S
71 1 5